package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PZiliaoMapper;
import com.haima.ziliao.domain.PZiliao;
import com.haima.ziliao.service.IPZiliaoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 资料管理Service业务层处理
 * 
 * @author hima
 * @date 2024-10-21
 */
@Service
public class PZiliaoServiceImpl extends ServiceImpl<PZiliaoMapper, PZiliao> implements IPZiliaoService
{
    @Autowired
    private PZiliaoMapper pZiliaoMapper;

    /**
     * 查询资料管理
     * 
     * @param id 资料管理主键
     * @return 资料管理
     */
    @Override
    public PZiliao selectPZiliaoById(Long id)
    {
        return pZiliaoMapper.selectPZiliaoById(id);
    }

    /**
     * 查询资料管理列表
     * 
     * @param pZiliao 资料管理
     * @return 资料管理
     */
    @Override
    public List<PZiliao> selectPZiliaoList(PZiliao pZiliao)
    {
        return pZiliaoMapper.selectPZiliaoList(pZiliao);
    }

    /**
     * 新增资料管理
     * 
     * @param pZiliao 资料管理
     * @return 结果
     */
    @Override
    public int insertPZiliao(PZiliao pZiliao)
    {
        return pZiliaoMapper.insertPZiliao(pZiliao);
    }

    /**
     * 修改资料管理
     * 
     * @param pZiliao 资料管理
     * @return 结果
     */
    @Override
    public int updatePZiliao(PZiliao pZiliao)
    {
        return pZiliaoMapper.updatePZiliao(pZiliao);
    }

    /**
     * 批量删除资料管理
     * 
     * @param ids 需要删除的资料管理主键
     * @return 结果
     */
    @Override
    public int deletePZiliaoByIds(Long[] ids)
    {
        return pZiliaoMapper.deletePZiliaoByIds(ids);
    }

    /**
     * 删除资料管理信息
     * 
     * @param id 资料管理主键
     * @return 结果
     */
    @Override
    public int deletePZiliaoById(Long id)
    {
        return pZiliaoMapper.deletePZiliaoById(id);
    }

    @Override
    public List<PZiliao> selectPZiliaoListShua(PZiliao pZiliao) {
        return pZiliaoMapper.selectPZiliaoListShua(pZiliao);
    }
}
